package com.chixing.day20.day20_Home;

import java.io.File;
import java.io.IOException;
import java.util.List;

public class TranTest {
    public static void main(String[] args) throws IOException {
        TransRecordManger trm = new TransRecordManger();
        trm.load("//Users//marslyonjason//CX_Workspace//record.txt");
        for(TransRecord tr : trm.getAll()){
            System.out.println(tr);
        }
        System.out.println("===========按客户号查询记录==========");
        List<TransRecord> list = trm.findcust("000201");
        for(TransRecord tr : list){
            System.out.println(tr);
        }

        System.out.println("===========取得总金额==========");
        System.out.println(trm.total());
    }
}
